#ifndef TEXTINPUT_H
#define TEXTINPUT_H

#include <QWidget>

#include <QLabel>
#include <QTextLine>
#include <QHBoxLayout>
#include <QLineEdit>

class TextInput : public QWidget
{
    Q_OBJECT
public:
    explicit TextInput(QWidget *parent = nullptr);
    TextInput(const QString &labelName, const QString &placeholderText, const QString &textInputModel, QWidget *parent);
    void setLabelName(const QString& labelName);
    void setPlaceholderText(const QString& placeholderText);
    void showTextInput();
    void setTextInputModel(const QString& textInputModel);
    QString& getTextInput();
    ~TextInput();
    void clear();
signals:

private:
    QString labelName;
    QString placeholderText;
    QLabel* label;
    QLineEdit* lineEdit;
    QHBoxLayout* layout;
    QString textInputModel;
    QString textInput;
};

#endif // TEXTINPUT_H
